<?php
include_once("../../config.php");
$plate=select_one_line_all_items($table_Prefix."plate","mid = 'equipment'");
?>

<?php include "../../coresection/checkSession.php";?>
<?php include "../../coresection/admin-product.php";?>
<?php include "../../coresection/order-list.php";?>

<?
//用来判断当前系统属于什么板块
$system_part = $plate['mid'];
include_once("detail-list-function.php");
?>



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <?php include '../../modules/head.php'; ?>
</head>

<body>

<?php include '../../modules/topbar.php'; ?>

<div class="setup_area">


    <?php include '../../modules/sidebar-admin.php'; ?>

    <div class="header">
        <h1>设备管理</h1>

        <?php include '../../modules/header.php'; ?>

    </div>




    <div class="content_area dishes_box">

        <!-- 用$system_part .list_boxes来控制来到确认板块信息显示-->
        <div class="list-box">




<form id="add-equipment-form" method="post" action="detail-add-function.php?nav-itemed=equipment" enctype="multipart/form-data" class="layui-form">


<!--    <div class="layui-form-item">-->
<!--        <label class="layui-form-label">设备</label>-->
<!--        <div class="layui-input-block">-->
<!--            <input type="text" name="name" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input" value="">-->
<!--        </div>-->
<!--    </div>-->

    <div class="layui-form-item">
        <label class="layui-form-label">设备</label>
        <div class="layui-input-block">

            <select name="name"><i class="layui-icon"></i>
                <option value="空调">空调</option>
                <option value="卷闸">卷闸</option>
                <option value="LED显示屏">LED显示屏</option>
                <option value="电视">电视</option>
                <option value="冰箱">冰箱</option>
                <option value="洗衣机">洗衣机</option>
                <option value="其他">其他</option>
            </select>
        </div>
    </div>







    <div class="layui-form-item">
        <label class="layui-form-label">编号</label>
        <div class="layui-input-block">
            <input type="text" name="mid" required  lay-verify="required" placeholder="编号" autocomplete="off" class="layui-input" value="">
        </div>
    </div>



    <div class="layui-form-item">
        <label class="layui-form-label">购买日期</label>
        <div class="layui-input-block">

            <input type="text" name="buydate" id="date" autocomplete="off" class="layui-input"  value="" onclick="laydate({istime: true, format: 'YYYY-MM-DD'})" class="laydate-icon">
        </div>
    </div>





    <div class="layui-form-item">
        <label class="layui-form-label">牌子</label>
        <div class="layui-input-block">
            <input type="text" name="brand" placeholder="请输入品牌" autocomplete="off" class="layui-input" value="">
        </div>
    </div>





    <?
    $department_list=select_lines_all_items($table_Prefix."location","nid desc","","0");
    $department=select_one_line_all_items($table_Prefix."location","nid = '".$detail['departmentid']."'");
    ?>


    <div class="layui-form-item">
        <label class="layui-form-label">使用部门</label>
        <div class="layui-input-block">
            <select name="departmentid" >

                <option value="<? echo $detail['departmentid']?>"><? echo $department['name']?></option>

                <?for($i=0;$i<count($department_list);$i++){?>
                    <option value="<? echo $department_list[$i]['nid'] ?>"><? echo $department_list[$i]['name'];?></option>
                    <? ;} ?>
            </select>
        </div>
    </div>



    <div class="layui-form-item">
        <label class="layui-form-label">状态</label>
        <div class="layui-input-block">

            <select name="status"><i class="layui-icon"></i>
                <option value="正常">正常</option>
                <option value="报废">报废</option>
            </select>
        </div>
    </div>





    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label">备注</label>
        <div class="layui-input-block">
            <textarea name="remark" placeholder="备注" class="layui-textarea"></textarea>
        </div>
    </div>







    <input name="sys_part" type="hidden" value="<? echo $system_part ?>"/>
        <input name="nowpageid" type="hidden" value="<? echo $_REQUEST['nowpageid'] ?>"/>
        <input name="sortby" type="hidden" value="<? echo $_REQUEST['sortby'] ?>"/>










        <div class="layui-form-item">
    <div class="layui-input-block">
      <button class="layui-btn" lay-submit lay-filter="formequipmentAdd" type="submit">立即提交</button>
      <button type="reset" class="layui-btn layui-btn-primary">重置</button>
    </div>
  </div>
</form>
 

 
 
        </div>
		
 
 
<!--content端點01-->
</div>
<!--maincontent端點01-->
<br class="clearfloat"/>
</div>
<!--container端點01-->
</div>







<?php include '../../modules/footer.php'; ?>
</body>
</html>
